'use strict';
const requireEx =require('yi-require');

const middleware = (req, res, next) => {
    req.body.number = parseInt(new Date().getTime()) + '';
    next();
};

module.exports = {
    open: false,
    description:'新增优惠券',
    middleware: middleware,
    handler:requireEx('yi-restful').c('coupon',[])
};
